package com.ilink.yanchuangservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ilink.yanchuangservice.entity.PO.YanchuangExhibitionTime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface YanchuangExhibitionTimeMapper extends BaseMapper<YanchuangExhibitionTime> {

    // 根据ID更新展览的当前状态
    @Update("UPDATE yanchuang_exhibition_time SET current_status = #{currentStatus} WHERE custom_primary = #{id}")
    void updateCurrentStatus(Long id, String currentStatus);
}